import api from '@/api/index.ts'

// 获取列表
export function GetData(params: any) {
  return api.get('/api/clientaccountlabel/list', { params })
}
// 获取选项
export function GetOptionData(params: any) {
  return api.get('/api/clientaccountlabel/optionlist', { params })
}
// 添加
export function PostCreateAccount(params: any) {
  return api.post('/api/clientaccountlabel/create', params)
}
// 获取详情数据
export function GetDataDetail(id: string) {
  return api.get(`/api/clientaccountlabel/detail/${id}`)
}
// 编辑信息
export function PutDetailsRedact(params: any) {
  return api.put(`/api/clientaccountlabel/modify`, params)
}
// 删除标签
export function DeleteLabel(id: any) {
  return api.delete(`/api/clientaccountlabel/delete/${id}`)
}
